<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="layout">
<head>
    <title>Find Owners</title>
    <link rel="stylesheet" href="../../static/css/bootstrap.min.css"/>
</head>
<body>

<div class="container">

    <!-- sample header -->
    <nav class="navbar navbar-default navbar-inverse" role="navigation">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">Static Brand</a>
        </div>

        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="employeeList.html">Employees</a></li>
                <li><a href="#">Link</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">Link</a></li>
            </ul>
        </div>
    </nav>
    <!-- sample header end -->

    <h1 layout:fragment="header">Find Owners</h1>

    <div layout:fragment="content">

        <div class="row">
            <form th:action="@{/owners.html}" th:object="${owner}"
                  action="ownersList.html" method="get" class="navbar-form navbar-left">
                <div class="form-group" id="lastName">
                    <label class="control-label">Last name </label>
                    <input type="text" class="form-control" th:field="*{lastName}" size="30" maxlength="80"/>
                    <span class="help-inline" th:errors="*{lastName}">[Errors]</span>
                    <!--<span class="help-inline"><form:errors path="*"/></span>-->
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-default">Find Owner</button>
                </div>
            </form>
        </div>

        <br/>
        <a class="btn btn-default" href="createOrUpdateOwnerForm.html" th:href="@{'/owners/new'}">Add Owner</a>

    </div>

    <div class="text-center">
        sample copyright 2016
    </div>
</div>
</body>
</html>